package com.xiaoxx.model.dto.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author HX
 * @Date 2022/2/28 15:39
 */
@Data
public class UserLoginDto {

    @ApiModelProperty(value = "用户名", position = 1)
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty(value = "密码", position = 2)
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "验证码", position = 2)
    @NotBlank(message = "验证码不能为空")
    private String code;

    @ApiModelProperty(value = "验证码key", position = 2)
    @NotBlank(message = "验证码不能为空")
    private String codeKey;

    @ApiModelProperty(value = "登录类型 0-管理员 1-用户", position = 2)
    private Integer type = 0;
}
